import axios from 'axios';

let base = '';
let base2 = 'http://47.96.67.141:8888/api/';

export const requestLogin1 = params => { return axios.post(`${base2}/SysInfo/UserLogin?FLD_NAME=admin&FLD_PSWD=123456`, { params: params }).then(res => res.data); };
export const requestLogin = params => { return axios.post(`${base}/login`, params).then(res => res.data); };

export const getUserList = params => { return axios.get(`${base}/user/list`, { params: params }); };

export const getUserListPage = params => { return axios.get(`${base}/user/listpage`, { params: params }); };

export const removeUser = params => { return axios.get(`${base}/user/remove`, { params: params }); };

export const batchRemoveUser = params => { return axios.get(`${base}/user/batchremove`, { params: params }); };

export const editUser = params => { return axios.get(`${base}/user/edit`, { params: params }); };

export const addUser = params => { return axios.get(`${base}/user/add`, { params: params }); };

export const getPosiStuList = params => { return axios.get(`http://114.55.56.242:8090/getdownresult`, { params: 'key=1' }); };
